package com.linkhub.oms.common.enums.mp;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.linkhub.oms.common.enums.IEnumConvert;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 交易类型
 *
 * @author Frank
 */
@Getter
@AllArgsConstructor
public enum TransactionTypeEnum implements IEnumConvert<Integer> {
    /**
     * 交易类型
     * 注：新增或修改枚举，注意修改 {@link com.linkhub.oms.admin.modules.user.account.service.impl.UserAccountServiceImpl#updateAccountAmount}
     */
    PAY(1, "支出"),
    INCOME(2, "收入"),
    FREEZE(3, "冻结"),
    UN_FREEZE(4, "解冻"),
    ;
    @EnumValue
    private final Integer code;
    private final String desc;


}
